<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div class="qw">
        当时的剧本机会比较好吧会尽快吧链接
    </div>
    <div class="qw">
        就饿万一好几遍美女吧1编辑 吧
    </div>
    <div class="qw">
        欲与一个一个边VGv1技能砍价看就
    </div>
    <div class="qw">
        豹女豹女价格表将户口本过滤过滤过滤客户
    </div>
</body>

</html>
<style>
    .qw {
        border: 2px solid #000;
        padding: 6px;
        width: 200px;
        margin: 20px auto;
    }
</style>
<script>
    var qw = document.querySelectorAll(".qw")
    for (let i = 0; i < qw.length; i++) {
        qw[i].onclick = function () {
            if (qw[1]) {
               return alert("1")
            }
            if (qw[2]) {
                return alert("2")
            }
            if (qw[3]) {
                return alert("3")
            }
            if (qw[4]) {
                return  alert("4")
            }
        }
    }
</script>